﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UtilZ.Dotnet.Ex.Model;

namespace UtilZ.Dotnet.Ex.Communication.Net.Telnet
{
    /// <summary>
    /// telnet消息参数
    /// </summary>
    public class TelnetMessageArgs : EventArgs
    {
        /// <summary>
        /// 收到消息的telnet客户端
        /// </summary>
        public IListenTelnetClient TelnetClient { get; private set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; private set; }


        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="telnetClient">收到消息的telnet客户端</param>
        /// <param name="message">消息</param>
        public TelnetMessageArgs(IListenTelnetClient telnetClient, string message)
        {
            this.TelnetClient = telnetClient;
            this.Message = message;
        }

    }
}
